package com.zzhardy.example.common;

import cn.zzhardy.annotation.Excel;
import cn.zzhardy.annotation.Excel.FunctionType;
import cn.zzhardy.annotation.Excels;
import lombok.Data;

/**
 * @Author：Hardy
 * @Date：2021/3/28
 * @Function:
 */
@Data
public class SysUser {
    
    @Excel(name = "登录名称", sort = 1)
    private String userName;
    
    @Excel(name = "用户名称", sort = 2)
    private String nickName;
    
    @Excels({
                    @Excel(name = "部门名称", sort = 3, targetAttr = "deptName", type = FunctionType.EXPORT),
                    @Excel(name = "部门负责人",
                           sort = 4,
                           horizontalMergeNum = 3,
                           targetAttr = "leader",
                           type = FunctionType.EXPORT,
                           titleBackground = "217,225,242")
            })
    private SysDept dept;
}